<?php
class indexAction extends frontAction{
	public function execute(){
		$newsDao = new DaoNews();
		$productDao = new DaoProduct();
		
		//设置信息
		$daoCompany = new DaoCompany();
		$daoImg = new DaoImage();
		$company = $daoCompany->getOne("1");
		$companyImg = $daoImg->getOne("typeID='".service_type::COMPANY."'");
		//图片展示
		$images = $daoImg->getList("typeID='".service_type::ALBUM."'",8);
		
		//新闻分类
		$daoCategory = new DaoCategory();
		$newsCate = $daoCategory->getList("typeID='".service_type::NEWS."' and parentID=11 order by sortID asc,id ",2);
		
		$this->assign('newsCate',$newsCate);
		$this->assign('company',$company);
		$this->assign('companyImg',$companyImg);
		$this->assign('images',$images);
	}
}
?>
